package com.sixth.statistics.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sixth.core.entity.CheckResult;
import com.sixth.core.vo.R;
import com.sixth.statistics.service.CheckResultService;
import com.sixth.statistics.vo.CheckResultVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @program: six-hospital-system
 * @description: 处理检查结果的控制器
 * @author: 朱永奇
 * @create: 2024-08-17 17:29
 **/
@RestController
@RequestMapping("/statistics/checkResult")
@Api(tags = "检查结果统计")
public class CheckResultController {

    @Autowired
    private CheckResultService checkResultService;

    @PostMapping("/listPage")
    @ApiOperation(value = "检查项目分页统计", notes = "获取检查项目的分页统计数据")
    public R<IPage<CheckResult>> list(@RequestBody CheckResultVo checkResultVo) {
        return checkResultService.selectAll(checkResultVo);
    }
}
